<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
    <meta name="renderer" content="webkit" />
    <meta name="format-detection" content="telephone=no" />
    <title>编辑资料</title>
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <link rel="stylesheet" href="css/style.css" />
    <link rel="stylesheet" href="css/iconfont.css" />
    <link rel="stylesheet" href="css/element-icons.css" />
    <link rel="stylesheet" href="css/newiconfont.css" />
    <script src="js/jquery.min.js"></script>
    <script src="js/lib.js"></script>
    <script src="js/page.js"></script>
    <script src="js/common/sm4.js"></script>
    <script src="js/personalCenter.js"></script>
    <script src="js/module.js"></script>
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!--[if IE]>
    <link rel="stylesheet" href="css/all-ie-only.css" />
    <![endif]-->
</head>

<body>
<div class="header4 fix">
    <div class="wp">
        <div class="header-user">
            <a href="" class="hd">
                <img src="images/userHead.png" alt="">
                <span>管理员</span>
            </a>
            <div class="dropdown-menu">
                <div class="icon-arrow"></div>
                <ul>
                    <li>
                        <a href="home.html" class="con">
                            <span>首页</span>
                        </a>
                    </li>
                    <li>
                        <a href="personalCenter.html" class="con">
                            <span>资料编辑</span>
                        </a>
                    </li>
                    <li>
                        <a href="" class="con">
                            <span>我的钱包</span>
                        </a>
                    </li>
                    <li>
                        <a href="" class="con">
                            <span>退出登录</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
        <a href="" class="header4-logo">
            <div class="hd">
                <img src="images/logo3.svg" alt="" />
                <h2>星火链网 · 骨干节点 <span>（营口）</span></h2>
            </div>
            <p>打造链网协同新基建，建设区块链新经济模式</p>
        </a>
    </div>
</div>
<div class="main">
    <div class="box-editData">
        <div class="wp">
            <div class="tit">
                <h3>个人资料</h3>
            </div>
            <div class="items">
                <div class="items-tit">
                    <h4>基本信息</h4>
                </div>
                <div class="item">
                    <div class="t">头像</div>
                    <div class="con">
                        <div class="head-img" data-toggle="modal" data-target="#avatar-modal">
                            <img src="images/userHead.png" alt="" />
                        </div>
                    </div>
                </div>
                <div class="item">
                    <div class="t">昵称</div>
                    <div class="con">
                        <label id="nickname"></label>
                        <div class="btn">
                            <a href="javascript:;" class="myfancy" data-href="#pop-edit_nicheng">修改</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="items">
                <div class="items-tit">
                    <h4>安全信息</h4>
                </div>
                <div class="item">
                    <div class="t">手机号</div>
                    <div class="con">
                        <label id="phone"></label>
                        <div class="btn">
                            <a href="javascript:;" class="myfancy" data-href="#pop-edit_tel"><label id="phoneHandle">绑定</label></a>
                        </div>
                    </div>
                </div>
                <div class="item">
                    <div class="t">邮箱</div>
                    <div class="con">
                        <label id="email"></label>
                        <div class="btn">
                            <a href="javascript:;" class="myfancy" data-href="#pop-edit_email"><label id="emailHandle">绑定</label></a>
                        </div>
                    </div>
                </div>
                <div class="item">
                    <div class="t">钱包地址</div>
                    <div class="con">
                        <div class="copy js_copyInfo"><em id="bid"></em><i class="el-icon-copy-document" onclick="copy();">复制</i> </div>
                    </div>
                </div>
                <div class="item">
                    <div class="t">登录密码</div>
                    <div class="con">
                        <label id="password"></label>
                        <div class="btn">
                            <a href="javascript:;" class="myfancy" data-href="#pop-edit_pwd">修改密码</label></a>
                        </div>
                    </div>
                </div>
                <!--<div class="item">
                    <div class="t">私钥</div>
                    <div class="con">
                        <div class="btn">
                            <label id="typeDivYtg" style="display: none;">已托管</label>
                            <a href="javascript:;"  class="myfancy" data-href="#pop-qianbaojiesuo" id="typeDivWtg" style="display: none;">托管私钥</a>
                            <a href="javascript:;" onclick="downloadKeyStore();">下载Keystore文件</a>
                        </div>
                    </div>
                </div>-->
            </div>
        </div>
    </div>
</div>
<!-- 修改头像 -->
<div class="modal fade" id="avatar-modal" aria-hidden="true" aria-labelledby="avatar-modal-label" role="dialog" tabindex="-1">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <!--<form class="avatar-form" action="upload-logo.php" enctype="multipart/form-data" method="post">-->
            <form class="avatar-form">
                <div class="modal-header">
                    <button class="close" data-dismiss="modal" type="button">&times;</button>
                    <h4 class="modal-title" id="avatar-modal-label">上传图片</h4>
                </div>
                <div class="modal-body">
                    <div class="avatar-body">
                        <div class="avatar-upload">
                            <input class="avatar-src" name="avatar_src" type="hidden">
                            <input class="avatar-data" name="avatar_data" type="hidden">
                            <label for="avatarInput" style="line-height: 35px;">图片上传</label>
                            <button class="btn" type="button" style="height: 35px;" onclick="$('input[id=avatarInput]').click();">请选择图片</button>
                            <span id="avatar-name"></span>
                            <input class="avatar-input hide" id="avatarInput" name="avatar_file" type="file">
                        </div>
                        <div class="row">
                            <div class="col-md-9">
                                <div class="avatar-wrapper"></div>
                            </div>
                            <div class="col-md-3">
                                <div class="avatar-preview preview-lg" id="imageHead"></div>
                                <!--<div class="avatar-preview preview-md"></div>
                    <div class="avatar-preview preview-sm"></div>-->
                            </div>
                        </div>
                        <div class="row avatar-btns">
                            <div class="col-md-4">
                                <div class="btn-group">
                                    <button class="btn fa fa-undo" data-method="rotate" data-option="-90" type="button" title="Rotate -90 degrees"> 向左旋转</button>
                                </div>
                                <div class="btn-group">
                                    <button class="btn fa fa-repeat" data-method="rotate" data-option="90" type="button" title="Rotate 90 degrees"> 向右旋转</button>
                                </div>
                            </div>
                            <div class="col-md-5" style="text-align: right;">
                                <button class="btn fa fa-arrows" data-method="setDragMode" data-option="move" type="button" title="移动">
                                        <span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;setDragMode&quot;, &quot;move&quot;)">
                                        </span>
                                </button>
                                <button type="button" class="btn fa fa-search-plus" data-method="zoom" data-option="0.1" title="放大图片">
                                        <span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;zoom&quot;, 0.1)">
                                            <!--<span class="fa fa-search-plus"></span>-->
                                        </span>
                                </button>
                                <button type="button" class="btn fa fa-search-minus" data-method="zoom" data-option="-0.1" title="缩小图片">
                                        <span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;zoom&quot;, -0.1)">
                                            <!--<span class="fa fa-search-minus"></span>-->
                                        </span>
                                </button>
                                <button type="button" class="btn fa fa-refresh" data-method="reset" title="重置图片">
                                        <span class="docs-tooltip" data-toggle="tooltip" title="" data-original-title="$().cropper(&quot;reset&quot;)" aria-describedby="tooltip866214">
                                </button>
                            </div>
                            <div class="col-md-3">
                                <button class="btn btn-block avatar-save fa fa-save" type="button" data-dismiss="modal"> 保存修改</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="loading" aria-label="Loading" role="img" tabindex="-1"></div>
<!-- 修改头像 end -->
<!-- 弹窗 -->
<!-- 修改昵称 -->
<div class="m-pop" id="pop-edit_nicheng">
    <div class="win-pop2">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>昵称修改</h3>
        </div>
        <div class="win1-bd">
            <div class="win2-item col-1">
                <div class="tit"><span>*</span>请输入您的昵称：</div>
                <div class="con">
                    <div class="input-suffix">
                        <input type="text" class="input-inner" placeholder="请输入您的昵称" id="nicknameUpdate">
                        <div class="icon">
                            <i class="el-input__icon el-icon-circle-close"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="win-bt3 win-bt_center">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="javascript:;" class="primary-btn" onclick="updateNickname();"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 手机号绑定 -->
<div class="m-pop" id="pop-edit_tel">
    <div class="win-pop2">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3 id="phoneTitle"></h3>
        </div>
        <div class="win1-bd">
            <div class="win2-item col-1" id="phoneOldDiv">
                <div class="tit"><span>*</span>请输入当前手机号收到的验证码：</div>
                <div class="con">
                    <div class="input-code">
                        <input type="text" class="input-inner" placeholder="请输入验证码" id="checkCodePhoneOld" onmouseout="validateCheckCodePhoneOld();"/>
                        <button class="vcodebtn js-vcodebtn" data-msgrefresh="重新获取" data-msg="发送验证码"  onclick="sendCheckCodePhoneOld();" id="checkCodePhoneOldBtn">
                            发送验证码
                        </button>
                    </div>
                </div>
                <div class="tit" style="display: none; color: red;" id="checkCodePhoneOldError">请输入验证码</div>
            </div>
            <div class="win2-item col-1">
                <div class="tit"><span>*</span>请输入您的新手机号：</div>
                <div class="con">
                    <div class="input-suffix">
                        <input type="text" class="input-inner" placeholder="请输入您的手机号" id="phoneVaule" onmouseout="validatePhone();">
                    </div>
                </div>
                <div class="tit" style="display: none; color: red;" id="phoneError"></div>
            </div>
            <div class="win2-item col-1">
                <div class="tit"><span>*</span>请输入验证码：</div>
                <div class="con">
                    <div class="input-code">
                        <input type="text" class="input-inner" placeholder="请输入验证码" id="checkCodePhone" onmouseout="validateCheckCodePhone();"/>
                        <button class="vcodebtn js-vcodebtn" data-msgrefresh="重新获取" data-msg="发送验证码" onclick="sendCheckCodePhone();" id="checkCodePhoneBtn">
                            发送验证码
                        </button>
                    </div>
                </div>
                <div class="tit" style="display: none; color: red;" id="checkPhoneError"></div>
            </div>
        </div>
        <div class="win-bt3 win-bt_center">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="javascript:;" class="primary-btn" onclick="updatePhone();"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 邮箱绑定 -->
<div class="m-pop" id="pop-edit_email">
    <div class="win-pop2">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3 id="emailTitle"></h3>
        </div>
        <div class="win1-bd">
            <div class="win2-item col-1" id="emailOldDiv">
                <div class="tit"><span>*</span>请输入当前邮箱收到的验证码：</div>
                <div class="con">
                    <div class="input-code">
                        <input type="text" class="input-inner" placeholder="请输入验证码" id="checkCodeEmailOld" onmouseout="validateCheckCodeEmailOld();"/>
                        <button class="vcodebtn js-vcodebtn" data-msgrefresh="重新获取" data-msg="发送验证码" onclick="sendCheckCodeEmailOld();" id="checkCodeEmailOldBtn">
                            发送验证码
                        </button>
                    </div>
                </div>
                <div class="tit" style="display: none; color: red;" id="checkCodeEmailOldError"></div>
            </div>
            <div class="win2-item col-1">
                <div class="tit"><span>*</span>请输入需要绑定的邮箱：</div>
                <div class="con">
                    <div class="input-suffix">
                        <input type="text" class="input-inner" placeholder="请输入您的邮箱" id="emailValue" onmouseout="validateEmail();">
                        <div class="icon">
                            <i class="el-input__icon el-icon-circle-close"></i>
                        </div>
                    </div>
                </div>
                <div class="tit" style="display: none; color: red;" id="emailError"></div>
            </div>
            <div class="win2-item col-1">
                <div class="tit"><span>*</span>请输入验证码：</div>
                <div class="con">
                    <div class="input-code">
                        <input type="text" class="input-inner" placeholder="请输入验证码" id="checkCodeEmail" onmouseout="validateCheckCodeEmail();"/>
                        <button class="vcodebtn js-vcodebtn" data-msgrefresh="重新获取" data-msg="发送验证码" onclick="sendCheckCodeEmail();" id="checkCodeEmailBtn">
                            发送验证码
                        </button>
                    </div>
                </div>
                <div class="tit" style="display: none; color: red;" id="checkCodeEmailError"></div>
            </div>
        </div>
        <div class="win-bt3 win-bt_center">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="javascript:;" class="primary-btn" onclick="updateEmail();"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 登录密码 -->
<div class="m-pop" id="pop-edit_pwd">
    <div class="win-pop2">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>修改密码</h3>
        </div>
        <div class="win1-bd">
            <div class="win2-item col-1">
                <div class="tit"><span>*</span>请输入当前密码：</div>
                <div class="con">
                    <div class="input-suffix">
                        <input type="password" class="input-inner" placeholder="请输入当前密码" id="passwordOld" onmouseout="validatePasswordOld();">
                        <div class="icon">
                            <i class="el-input__icon i-changetype el-icon-view"></i>
                            <i class="el-input__icon el-icon-circle-close"></i>
                        </div>
                    </div>
                </div>
                <div class="tit" style="display: none; color: red;" id="passwordOldError">请输入当前密码</div>
            </div>
            <div class="win2-item col-1">
                <div class="tit"><span>*</span>请输入密码：</div>
                <div class="con">
                    <div class="input-suffix">
                        <input type="password" class="input-inner" placeholder="请输入密码" id="passwordNew" onmouseout="validatePasswordNew();">
                        <div class="icon">
                            <i class="el-input__icon i-changetype el-icon-view"></i>
                            <i class="el-input__icon el-icon-circle-close"></i>
                        </div>
                    </div>
                </div>
                <div class="tit" style="display: none; color: red;" id="passwordNewError">请输入密码</div>
            </div>
            <div class="win2-item col-1">
                <div class="tit"><span>*</span>请再次输入密码：</div>
                <div class="con">
                    <div class="input-suffix">
                        <input type="password" class="input-inner" placeholder="请再次输入密码" id="passwordSure" onmouseout="validatePasswordSure();">
                        <div class="icon">
                            <i class="el-input__icon i-changetype el-icon-view"></i>
                            <i class="el-input__icon el-icon-circle-close"></i>
                        </div>
                    </div>
                </div>
                <div class="tit" style="display: none; color: red;" id="passwordSureError">请输入确认密码</div>
            </div>
        </div>
        <div class="win-bt3 win-bt_center">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="javascript:;" class="primary-btn" onclick="updatePassword();"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 弹窗 end -->
<div class="footer4">
    <div class="wp">
        <div class="footer4-copy">
            <p>Copyright © 2016-2022 北京泰尔英福网络科技有限责任公司 京ICP备12003601-6号</p>
        </div>
    </div>
</div>
<div class="pop-bg"></div>
<!-- 合约禁用弹窗 -->
<div class="m-pop" id="pop-heyuejinyong">
    <div class="win-pop1">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>合约禁用</h3>
        </div>
        <div class="win1-bd">
            <div class="win1-item">
                <div class="tit">禁用原因<span>*</span></div>
                <div class="con">
                    <input type="text" class="input-inner" />
                </div>
            </div>
        </div>
        <div class="win-bt">
            <a href="javascript:;" class="js-btn"><span>取 消</span></a>
            <a href="" class="primary-btn"><span>确 定</span></a>
        </div>
    </div>
</div>
<!-- 合约禁用弹窗 end -->
<!-- 撤销弹窗 -->
<div class="m-pop" id="pop-chexiaozhengshu">
    <div class="win-pop1">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>撤销</h3>
        </div>
        <div class="win1-bd">
            <div class="win1-item">
                <div class="tit">撤销原因:</div>
                <div class="con">
                    <textarea class="textarea-inner" placeholder="请输入撤销原因"></textarea>
                </div>
            </div>
        </div>
        <div class="win-bt">
            <a href="" class="primary-btn"><span>提交</span></a>
            <a href="javascript:;" class="js-btn"><span>返回</span></a>
        </div>
    </div>
</div>
<!-- 撤销弹窗 end -->
<!-- 禁用弹窗 -->
<div class="m-pop" id="pop-jinyong">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>提示</h3>
        </div>
        <div class="win3-bd">
            <div class="win3-item">
                <div class="icon_dn el-icon-info"></div>
                <div class="desc">
                    <p>您确定要禁用标识吗？</p>
                </div>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 禁用弹窗 end -->
<!-- 启用弹窗 -->
<div class="m-pop" id="pop-qiyong">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>提示</h3>
        </div>
        <div class="win3-bd">
            <div class="win3-item">
                <div class="icon_dn el-icon-info"></div>
                <div class="desc">
                    <p>您确定要启用标识吗？</p>
                </div>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 启用弹窗 end -->
<!-- 下载KeyStore -->
<div class="m-pop" id="pop-xiazaiKeyStore">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>提示</h3>
        </div>
        <div class="win3-bd">
            <div class="win3-item">
                <div class="tit">请输入创建人的私钥</div>
                <div class="con">
                    <input type="text" class="input-inner" />
                </div>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 下载KeyStore end -->
<!-- 删除 -->
<div class="m-pop" id="pop-shanchu">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>提示</h3>
        </div>
        <div class="win3-bd">
            <div class="win3-item">
                <div class="icon_dn el-icon-warning"></div>
                <div class="desc">
                    <p>此操作将永久删除该数据, 是否继续?</p>
                </div>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 删除 end -->
<!-- 删除2 -->
<div class="m-pop" id="pop-shanchu2">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>提示</h3>
        </div>
        <div class="win3-bd">
            <div class="win3-item">
                <div class="icon_dn el-icon-info"></div>
                <div class="desc">
                    <p>确定删除选中角色?</p>
                </div>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 删除2 end -->
<!-- 删除3 -->
<div class="m-pop" id="pop-shanchu3">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <!-- <h3>提示</h3> -->
        </div>
        <div class="win3-bd">
            <div class="win3-item">
                <div class="icon_dn el-icon-warning"></div>
                <div class="desc">
                    <p>确定将选择数据删除?</p>
                </div>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 删除3 end -->
<!-- 删除4 -->
<div class="m-pop" id="pop-shanchu4">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <!-- <h3>提示</h3> -->
        </div>
        <div class="win3-bd">
            <div class="win3-item">
                <div class="icon_dn el-icon-warning"></div>
                <div class="desc">
                    <p>确定将选择数据删除?</p>
                </div>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 删除4 end -->
<!-- 移至黑名单 -->
<div class="m-pop" id="pop-yizhiheimingdan">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>提示</h3>
        </div>
        <div class="win3-bd">
            <div class="win3-item">
                <div class="icon_dn el-icon-warning"></div>
                <div class="desc">
                    <p>确定将该用户移至黑名单吗?</p>
                </div>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 移至黑名单 end -->
<!-- 升至管理员 -->
<div class="m-pop" id="pop-shengzhiguanliyuan">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>提示</h3>
        </div>
        <div class="win3-bd">
            <div class="win3-item">
                <div class="icon_dn el-icon-warning"></div>
                <div class="desc">
                    <p>确定将该用户添加至管理员?</p>
                </div>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 升至管理员 end -->
<!-- 移除管理员 -->
<div class="m-pop" id="pop-yichuguanliyuan">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>提示</h3>
        </div>
        <div class="win3-bd">
            <div class="win3-item">
                <div class="icon_dn el-icon-info"></div>
                <div class="desc">
                    <p>确定移除该用户管理员?</p>
                </div>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 移除管理员 end -->
<!-- 重置密码 -->
<div class="m-pop" id="pop-chongzhimima">
    <div class="win-pop3">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-icon-close"></i>
                </a>
            </div>
            <h3>请输入接收密码的邮箱</h3>
        </div>
        <div class="win3-bd">
            <div class="form-1 form-4">
                <form action="">
                    <div class="form-item col-1">
                        <div class="tit"></div>
                        <div class="con">
                            <input type="text" class="input-inner" placeholder="">
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div class="win-bt2">
            <a href="javascript:;" class="js-btn"><span>取消</span></a>
            <a href="" class="primary-btn"><span>确定</span></a>
        </div>
    </div>
</div>
<!-- 重置密码 end -->
<!-- 钱包解锁弹窗 -->
<div class="m-pop" id="pop-qianbaojiesuo">
    <div class="win-pop2">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-dialog__close el-icon el-icon-close"></i>
                </a>
            </div>
            <h3>钱包解锁</h3>
        </div>
        <div class="win1-bd">
            <div class="win2-item">
                <div class="tit">请选择方式：</div>
                <div class="con">
                    <ul class="radio-group js-custom-radio-checkbox" data-modulename="formrel01">
                        <li data-selectName=".item-select1">
                            <label>
                                <input type="radio" name="1" checked />
                                <i class="icon"></i>
                                <span>BID keystore 文件</span>
                            </label>
                        </li>
                        <li data-selectName=".item-select2">
                            <label>
                                <input type="radio" name="1" />
                                <i class="icon"></i>
                                <span>BID私钥</span>
                            </label>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="win2-item item-select1">
                <div class="tit">请选择BID Keystore文件</div>
                <div class="con">
                    <div class="file-upload_box3">
                        <div class="fileUpload-btn3">
                            <label>
                                <input type="file" class="js-upload">
                                <span><i class="icon_dn el-icon-upload e-upload"></i>选择文件</span>
                            </label>
                        </div>
                        <ul class="fileUpload-files">
                            <!-- <li>
                            <a href="javascript:;">
                                <i class="el-icon-document"></i>
                                <span>5cd67b13-740e-4f77-b950-09e47e60881d (1).json</span>
                            </a>
                            <i class="el-icon-close"></i>
                        </li> -->
                        </ul>
                    </div>
                </div>
            </div>
            <div class="win2-item col-1 item-select1">
                <div class="tit">请输入密码：</div>
                <div class="con">
                    <div class="input-suffix">
                        <input type="password" class="input-inner" placeholder="请输入密码" />
                        <div class="icon">
                            <i class="el-input__icon i-changetype el-icon-view"></i>
                            <i class="el-input__icon el-icon-circle-close"></i>
                        </div>
                    </div>
                </div>
            </div>
            <div class="win2-item col-1 item-select2">
                <div class="tit">请输入BID私钥：</div>
                <div class="con">
                    <div class="input-suffix">
                        <input type="password" class="input-inner" placeholder="请输入BID私钥" id="bidSy"/>
                        <div class="icon">
                            <i class="el-input__icon i-changetype el-icon-view"></i>
                            <i class="el-input__icon el-icon-circle-close"></i>
                        </div>
                    </div>
                </div>

                <div class="tit" style="margin-top: 10px;">请设置私钥备份密码：</div>
                <div class="con">
                    <div class="input-suffix">
                        <input type="password" class="input-inner" placeholder="请输入私钥备份密码" id="bidPassword"/>
                        <div class="icon">
                            <i class="el-input__icon i-changetype el-icon-view"></i>
                            <i class="el-input__icon el-icon-circle-close"></i>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="win-bt win-bt_center">
            <a href="javascript:;" class="js-btn"><span>取 消</span></a>
            <a href="javascript:;" class="primary-btn" onclick="updateBfPassword();"><span>确 定</span></a>
        </div>
    </div>
</div>
<!-- 钱包解锁弹窗 end -->
<!-- 显隐 -->
<div class="m-pop" id="pop-xianyin">
    <div class="win-pop5">
        <div class="win1-hd">
            <div class="win1-btn">
                <a href="javascript:;" class="close js-close">
                    <i class="el-dialog__close el-icon el-icon-close"></i>
                </a>
            </div>
            <h3>多 选</h3>
        </div>
        <div class="win1-bd">
            <ul class="checkbox-group2 js-custom-radio-checkbox" data-modulename="formrel01">
                <li>
                    <label>
                        <input type="checkbox" name="1" checked />
                        <i class="icon"></i>
                        <span>角色名称</span>
                    </label>
                </li>
                <li>
                    <label>
                        <input type="checkbox" name="1" />
                        <i class="icon"></i>
                        <span>所属租户</span>
                    </label>
                </li>
                <li>
                    <label>
                        <input type="checkbox" name="1" />
                        <i class="icon"></i>
                        <span>角色别名</span>
                    </label>
                </li>
                <li>
                    <label>
                        <input type="checkbox" name="1" />
                        <i class="icon"></i>
                        <span>角色排序</span>
                    </label>
                </li>
            </ul>
        </div>
    </div>
</div>
<!-- 显隐 end -->
<script src="js/module.js"></script>
<link rel="stylesheet" type="text/css" href="js/head_img/css/bootstrap-3.3.4.css">
<link href="js/head_img/css/cropper.min.css" rel="stylesheet">
<link href="js/head_img/css/sitelogo.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="js/head_img/css/font-awesome.4.6.0.css">
<script src="js/head_img/js/bootstrap-3.3.4.js"></script>
<script src="js/head_img/js/cropper.js"></script>
<script src="js/head_img/js/sitelogo.js"></script>
<script src="js/head_img/js/html2canvas.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    var picstr = '' // 头像地址
    $('#avatarInput').on('change', function(e) {
        var filemaxsize = 1024 * 5; //5M
        var target = $(e.target);
        var Size = target[0].files[0].size / 1024;
        if (Size > filemaxsize) {
            alert('图片过大，请重新选择!');
            $(".avatar-wrapper").childre().remove;
            return false;
        }
        if (!this.files[0].type.match(/image.*/)) {
            alert('请选择正确的图片!')
        } else {
            var filename = document.querySelector("#avatar-name");
            var texts = document.querySelector("#avatarInput").value;
            var teststr = texts; //你这里的路径写错了
            testend = teststr.match(/[^\\]+\.[^\(]+/i); //直接完整文件名的
            filename.innerHTML = testend;
            picstr = testend // 头像赋值
            // console.log(testend,'文件')
        }

    });

    $(".avatar-save").on("click", function() {
        var img_lg = document.getElementById('imageHead');
        // 截图小的显示框内的内容
        html2canvas(img_lg, {
            allowTaint: true,
            taintTest: false,
            onrendered: function(canvas) {
                canvas.id = "mycanvas";
                //生成base64图片数据
                var dataUrl = canvas.toDataURL("image/jpeg");
                var newImg = document.createElement("img");
                newImg.src = dataUrl;
                imagesAjax(dataUrl)
            }
        });
        let file = $("#avatarInput").get(0).files[0]
        console.log(file,'文件')
        let data = new FormData()
        data.append("file",file)
        $.ajax({
            url: "/user-center-oauth/file/upload",
            type: "post",
            data: data,
            contentType: false,
            processData: false,
            success:function(res){
                console.log(res,'上传图片返回')
                if (res.code == 200){
                    alert(res.msg)
                    window.location.herf = 'personalCenter.html'
                } else {
                    alert(res.msg)
                }
            }
        })
    })

    function imagesAjax(src) {
        $('.box-editData .head-img img').attr('src', src);
    }
    function copy(){
        window.clipboardData.setData('text', $("#bid").html());
        alert('复制成功');
    }
</script>
</body>

</html>